import Features from "./components/features";
import Introduction from "./components/introduction";
// 导入 Swiper 样式
import { homeMediaControllerFindAll } from "@/app/servers/api/homeMedia";
import { SwiperImage } from "./components/swiper-image";

const Home: React.FC = async() => {
  const { data: homeMedia } = await homeMediaControllerFindAll();
  const filterList = homeMedia.filter((el)=>{
    return el.isDisplayed
  })
  return (
    <main className="w-full">
      <SwiperImage homeMedia={filterList} />
      <Features />
      <Introduction />
    </main>
  );
};
export default Home;

